import axios from "../index.js";

// 用户登录
export function login(data) {
  return axios.post("/xspApi/login", {
    username: data.username,
    password: data.password,
  });
}

// 刷新Token
export function refreshToken(data) {
  return axios.post("/xspApi/refresh-token", data);
}

//找回密码
export function findPassword(data) {
  return axios.post("/xspApi/forget", data);
}

//发送短信
export function sendCode(data) {
  return axios.post("/xspApi/sendCode", data);
}


// token测试接口
export function test(data) {
  return axios.get("/xspApi/test", data);
}